web(d-web): per-node topology card on embedded dashboard - #446
Merged
Conversation
…<=480px The embedded dashboard header info boxes (#miner-info / #network-info) carry inline min-width (280px / 220px) that the 768px/900px breakpoints cannot override, and the monospace config lines (stratum URL, the <ADDR>,<DOGE_ADDR>.WORKER username) are unbreakable tokens. On a phone (<=414px) these force horizontal overflow that clips the view. Add a <=480px breakpoint that drops the inline mins to full-width and lets the long tokens wrap. Static drop-in (served from --dashboard-dir), no rebuild.
The /api/node_topology endpoint already returns THIS node's real coin set (primary + auto-detected embedded/aux coins, per-coin peer counts, embedded/has_rpc flags) but the embedded dashboard never rendered it -- the operator could not see the node's actual topology at a glance. Adds a config-driven Node Topology card (static drop-in, no backend change) that consumes the existing endpoint, mirroring the V36 crossing widget pattern. Hidden until the endpoint returns a non-empty coin list, so nodes with no topology data show nothing rather than a stub. Charter #2 (per-node truthful dashboard): each node now shows its own real topology, never a baked-in coin list.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Per-node truthful dashboard (charter #2)
The
/api/node_topologyendpoint already returns THIS node's real coin set — primary chain + auto-detected embedded/aux coins, per-coin peer counts, andembedded/has_rpcflags — but the embedded dashboard never rendered it. The operator could not see the node's actual topology at a glance.Change
stat-cardtoweb-static/dashboard.htmlthat consumes the existing endpoint, mirroring the V36 crossing-widget pattern (web(d-web): V36 share-version crossing widget on embedded dashboard #430).coinsarray, so a node with no topology data shows nothing rather than a stub (charter: a dashboard must never lie).Surfaced per coin
symbol · primary/embedded/rpc tags · live peer count.
Web layer only / non-consensus → normal merge after CI green; surfacing for merge-tap (web on prod = operator awareness).